const router = require('koa-router')()
const { getForumList, queryForumList, removeForum, getForumDetails, getComment, delComment, publishComment } = require("../controllers/forumController")

router.prefix('/forum')

// 论坛列表
router.get("/list", getForumList)
// 查询论坛列表
router.get("/query", queryForumList)
// 删除论坛
router.delete("/remove", removeForum)
// 获取论坛详情数据
router.get("/details", getForumDetails)
// 获取论坛评论数据
router.get("/comment", getComment)
// 删除评论
router.delete("/remove/comment", delComment)
// 发表评论
router.post("/publish/comment", publishComment)

module.exports = router